/* Copyright © 2020 liudong.li. All rights reserved. */
package com.liliudong.keelflower.upms.admin.auth;

import lombok.Data;
import org.apache.shiro.authc.AuthenticationToken;

/**
 * AuthorizationToken
 *
 * @author Liudong.li
 * @version 1.0
 * @date 2021-06-08 11:29
 */
@Data
public class AuthorizationToken implements AuthenticationToken {

    private final String token;

    public AuthorizationToken(String token) {
        this.token = token;
    }

    @Override
    public Object getPrincipal() {
        return this.token;
    }

    @Override
    public Object getCredentials() {
        return this.token;
    }
}
